package com.dream.service.recommender.web.parse;

import com.dream.service.recommender.domain.request.FrontParam;

import javax.servlet.http.HttpServletRequest;
import java.security.InvalidParameterException;

/**
 * Created by zhiji on 2016/3/24.
 */
public interface Parser {

    /**
     * 参数解析
     * @param req
     * @return
     * @throws InvalidParameterException
     */
    public FrontParam parse(HttpServletRequest req) throws InvalidParameterException;

    /**
     * 参数解析For开发推荐
     * @param req
     * @return
     * @throws InvalidParameterException
     */
    public FrontParam parseForOpen(HttpServletRequest req) throws InvalidParameterException;
}
